package f.h.dragon.patterns.mediator;

import static f.h.dragon.util.OutUtil.*;

/**
 * ConcreteColleague: the colleague with "to-do" and test extends of the <tt>AbstractColleague</tt> class.
 * 
 * @author Wenlong Meng(wenlong.meng@gmail.com)
 * @version 1.0 at 2012/04/20
 * @since 1.0
 * 
 * @see f.h.dragon.patterns.mediator.AbstractColleague
 */
public class ConcreteColleague1 extends AbstractColleague {

	// local variables
	
	//Constructor
	/**
	 * Construct the name Colleague
	 * 
	 * @param name
	 */
	public ConcreteColleague1(String name){
		super(name);
	}
	
	//Logic
	/**
	 * add task to to-do list
	 * 
	 * @param task
	 * 
	 * @see f.h.dragon.patterns.mediator.AbstractColleague#todo(String)
	 */
	@Override
	public void todo(String task) {
		outln("todo: " + task);
	}
	
	/**
	 * add task to to-do list
	 */
	public void test() {
		super.notify("ConcreteColleague1", "testing...");
	}
	
}
